package com.hx.vending.util;

import com.hx.vending.bean.Equipment;
import com.hx.vending.dao.EquipmentMapper;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/4/9.
 */
public class offlineMonitor {

    private Logger logger = Logger.getLogger(offlineMonitor.class); // 获取logger实例

    @Resource
    private EquipmentMapper equipmentMapper;

    public void offlineMonitor() {

        logger.error("//////////////////////////////////设备离线监测开始///////////////////////////////");



        //查询在线的设备
        this.equipmentMapper.updateEquipmentByTimeDifference(DateUtil.getTime());





        logger.error("//////////////////////////////////设备离线监测结束///////////////////////////////");
    }

}
